package com.hsmw.api.service;

import com.hsmw.api.mapper.HsmwPointsDetailsMapper;
import com.hsmw.api.mapper.HsmwPumpOperateRecordMapper;
import com.hsmw.common.base.BaseService;
import com.hsmw.domain.HsmwPointsDetails;
import com.hsmw.domain.HsmwPumpOperateRecord;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;

@Slf4j
@Service
@Transactional(isolation = Isolation.REPEATABLE_READ, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class HsmwPumpOperateRecordService extends BaseService<HsmwPumpOperateRecordMapper, HsmwPumpOperateRecord> {


    @Autowired
    private HsmwPumpOperateRecordMapper hsmwPumpOperateRecordMapper;

    public List<HsmwPumpOperateRecord> selectHsmwPumpOperateRecords(HashMap param) {
        return hsmwPumpOperateRecordMapper.selectHsmwPumpOperateRecords(param);

    }
}
